package personal.domain.accounting;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table (name="account_type")
@NamedQueries({
	@NamedQuery(name=AccountType.GET_ALL_ACCOUNT_TYPES, query="select accType from AccountType accType order by lower(accType.accountTypeName) asc")
})
public class AccountType implements Serializable {
	private static final long serialVersionUID = 1L;
	public static final String GET_ALL_ACCOUNT_TYPES = "AccountType.getAll";
	private Long accountTypeId;
	private String accountTypeName;
	
	@Id
	@GeneratedValue (strategy=GenerationType.AUTO)
	@Column (name="account_type_id", unique=true, length=11, nullable=false, insertable=true, updatable=false)
	public Long getAccountTypeId() {
		return accountTypeId;
	}
	public void setAccountTypeId(Long accountTypeId) {
		this.accountTypeId = accountTypeId;
	}
	@Column (name="account_type_name", unique=false, length=100, nullable=false, insertable=true, updatable=true)
	public String getAccountTypeName() {
		return accountTypeName;
	}
	public void setAccountTypeName(String accounTypeName) {
		this.accountTypeName = accounTypeName;
	}
}
